﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///StockAbnormalMsgModel 的摘要说明
/// </summary>
public class StockAbnormalMsgModel
{
    public StockAbnormalMsgModel()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    #region Model
    private string _stock_id;
    private string _stock_name;
    private DateTime _abnormal_date;
    private string _master;
    private string _increase;
    private string _last_month_rate;
    private string _reason;
    private DateTime _case_date;
    private string _case_summary;
    private string _case_content;
    private DateTime _cancel_date;
    private string _major_short_reason;
    private string _major_long_reason;
    private string _msg_oper;
    private string _msg_confirm;
    private string _major_oper;
    private string _major_confirm;
    private string _affect;
    private string _memo;
    private DateTime _modify_time;
    private int _id;
    /// <summary>
    /// stock_id
    /// </summary>
    public string stock_id
    {
        set { _stock_id = value; }
        get { return _stock_id; }
    }
    /// <summary>
    /// stock_name
    /// </summary>
    public string stock_name
    {
        set { _stock_name = value; }
        get { return _stock_name; }
    }
    /// <summary>
    /// 异动日期
    /// </summary>
    public string abnormal_date
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _abnormal_date = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_abnormal_date == null || _abnormal_date == new DateTime() || _abnormal_date == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _abnormal_date.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 主营
    /// </summary>
    public string master
    {
        set { _master = value; }
        get { return _master; }
    }
    /// <summary>
    /// 涨幅
    /// </summary>
    public string increase
    {
        set { _increase = value; }
        get { return _increase; }
    }
    /// <summary>
    /// 成交量与前1个月均量的比例
    /// </summary>
    public string last_month_rate
    {
        set { _last_month_rate = value; }
        get { return _last_month_rate; }
    }
    /// <summary>
    /// 异动原因
    /// </summary>
    public string reason
    {
        set { _reason = value; }
        get { return _reason; }
    }
    /// <summary>
    /// 异动事件时间
    /// </summary>
    public string case_date
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _case_date = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_case_date == null || _case_date == DateTime.MinValue || _case_date == new DateTime())
            {
                return string.Empty;
            }
            else
            {
                return _case_date.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 异动事件摘要
    /// </summary>
    public string case_summary
    {
        set { _case_summary = value; }
        get { return _case_summary; }
    }
    /// <summary>
    /// 事件具体内容
    /// </summary>
    public string case_content
    {
        set { _case_content = value; }
        get { return _case_content; }
    }
    /// <summary>
    /// 取消日期
    /// </summary>
    public string cancel_date
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _cancel_date = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_cancel_date == null || _cancel_date == new DateTime() || _cancel_date == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _cancel_date.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 主力短期原因
    /// </summary>
    public string major_short_reason
    {
        set { _major_short_reason = value; }
        get { return _major_short_reason; }
    }
    /// <summary>
    /// 主力长期原因
    /// </summary>
    public string major_long_reason
    {
        set { _major_long_reason = value; }
        get { return _major_long_reason; }
    }
    /// <summary>
    /// 消息录入人
    /// </summary>
    public string msg_oper
    {
        set { _msg_oper = value; }
        get { return _msg_oper; }
    }
    /// <summary>
    /// 消息确认
    /// </summary>
    public string msg_confirm
    {
        set { _msg_confirm = value; }
        get { return _msg_confirm; }
    }
    /// <summary>
    /// 主力录入人
    /// </summary>
    public string major_oper
    {
        set { _major_oper = value; }
        get { return _major_oper; }
    }
    /// <summary>
    /// 主力确认
    /// </summary>
    public string major_confirm
    {
        set { _major_confirm = value; }
        get { return _major_confirm; }
    }
    /// <summary>
    /// 对公司估值造成的影响
    /// </summary>
    public string affect
    {
        set { _affect = value; }
        get { return _affect; }
    }
    /// <summary>
    /// 备注
    /// </summary>
    public string memo
    {
        set { _memo = value; }
        get { return _memo; }
    }
    /// <summary>
    /// 修改时间
    /// </summary>
    public string modify_time
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _modify_time = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_modify_time == null || _modify_time == new DateTime() || _modify_time == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _modify_time.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 
    /// </summary>
    public int id
    {
        set { _id = value; }
        get { return _id; }
    }
    #endregion Model
}